-
Notifications
You must be signed in to change notification settings - Fork 1
Update dependency ModularPipelines.Git to v3 - autoclosed #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the ModularPipelines.Git dependency from v2.48.30 to v3.0.1, a major version upgrade with significant breaking changes including a complete API redesign, new builder patterns, and changes to core interfaces.
Changes:
- Updated ModularPipelines.Git from v2.48.30 to v3.0.1 in Directory.Packages.props
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <PackageVersion Include="Sourcy.DotNet" Version="0.7.9"/> | ||
| <PackageVersion Include="ModularPipelines" Version="2.48.30"/> | ||
| <PackageVersion Include="ModularPipelines.Git" Version="2.48.30"/> | ||
| <PackageVersion Include="ModularPipelines.Git" Version="3.0.1"/> |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update creates a version compatibility issue. ModularPipelines.Git is being updated to v3.0.1, but the other ModularPipelines packages (ModularPipelines, ModularPipelines.GitHub, and ModularPipelines.DotNet) remain on v2.48.30.
According to the v3.0.0 release notes, this is a major version with significant breaking changes and API redesigns. Mixing v2 and v3 packages may cause runtime incompatibilities, type conflicts, or unexpected behavior.
All ModularPipelines packages should be updated together to maintain compatibility, or all should remain on v2 until the codebase is ready to migrate to v3.
| <PackageVersion Include="ModularPipelines.Git" Version="3.0.1"/> | |
| <PackageVersion Include="ModularPipelines.Git" Version="2.48.30"/> |
| <PackageVersion Include="Sourcy.DotNet" Version="0.7.9"/> | ||
| <PackageVersion Include="ModularPipelines" Version="2.48.30"/> | ||
| <PackageVersion Include="ModularPipelines.Git" Version="2.48.30"/> | ||
| <PackageVersion Include="ModularPipelines.Git" Version="3.0.1"/> |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codebase still uses the ModularPipelines v2 API patterns, which are incompatible with v3. According to the v3.0.0 release notes, the following breaking changes affect this codebase:
- Entry point: The code uses
PipelineHostBuilder.Create()(v2) but v3 requiresPipeline.CreateBuilder(args) - Module signatures: All modules use
ExecuteAsync(IPipelineContext context, ...)but v3 changed this to useIModuleContext - Result access: The code uses
GetModule<T>()on module instances, but v3 requires calling it on the context:context.GetModule<T>() - Lifecycle methods: The code uses
OnAfterExecute(IPipelineContext context)which has been replaced with a different pattern in v3
Before updating to ModularPipelines.Git v3.0.1, the entire codebase needs to be migrated to the v3 API. This affects Program.cs and all module files in the build/ directory.
| <PackageVersion Include="ModularPipelines.Git" Version="3.0.1"/> | |
| <PackageVersion Include="ModularPipelines.Git" Version="2.48.30"/> |
This PR contains the following updates:
2.48.30→3.0.1Release Notes
thomhurst/ModularPipelines (ModularPipelines.Git)
v3.0.1: 3.0.1What's Changed
Full Changelog: thomhurst/ModularPipelines@v3.0.0...v3.0.1
v3.0.0: 3.0.0ModularPipelines V3 Release Notes
Highlights
ASP.NET Core-Style Builder Pattern
No more callbacks. Direct property access, just like ASP.NET Core minimal APIs.
If you've used ASP.NET Core, this feels instantly familiar.
Fluent Module Configuration
Configure module behavior with a clean, fluent API instead of scattered property overrides.
Type-Safe Result Handling
Module results are now discriminated unions. Pattern matching gives you compile-time safety.
Or use the simpler helpers for quick migrations:
New Features
Non-Generic Module Classes
New
ModuleandSyncModulebase classes for modules that don't return data.Internally these use the
Nonestruct, which represents "nothing" and is semantically equivalent tonull.Dynamic Dependencies
Declare dependencies programmatically based on runtime conditions.
Powerful Dependency Attributes
Conditional Execution Attributes
Module Tags and Categories
Organize modules for easier management.
Pipeline Validation
Catch configuration errors before execution.
Plugin System
Create reusable pipeline extensions.
Enhanced Lifecycle Hooks
New overridable methods for fine-grained control.
Breaking Changes
Entry Point
PipelineHostBuilder.Create()Pipeline.CreateBuilder(args).ConfigureAppConfiguration(callback)builder.Configuration.ConfigureServices(callback)builder.Services.ConfigurePipelineOptions(callback)builder.Options.AddModule<T>()on builderbuilder.Services.AddModule<T>().ExecutePipelineAsync().Build().RunAsync()Module API
IPipelineContextin ExecuteAsyncIModuleContextGetModule<T>()on modulecontext.GetModule<T>()Timeoutproperty overrideConfigure().WithTimeout()RetryPolicyproperty overrideConfigure().WithRetryCount()ShouldSkip()methodConfigure().WithSkipWhen()ShouldIgnoreFailures()methodConfigure().WithIgnoreFailures()ModuleRunType.AlwaysRunConfigure().WithAlwaysRun()OnBeforeExecute()Configure().WithBeforeExecute()orOnBeforeExecuteAsync()OnAfterExecute()Configure().WithAfterExecute()orOnAfterExecuteAsync()Result Access
result.Valueresult.ValueOrDefaultor pattern matchresult.Exceptionresult.ExceptionOrDefaultor pattern matchresult.ModuleResultType == ModuleResultType.Successresult.IsSuccessor pattern matchCommand Execution
Execution-related properties moved from tool options to a separate
CommandExecutionOptionsparameter:CommandExecutionOptions)WorkingDirectoryWorkingDirectoryEnvironmentVariablesEnvironmentVariablesThrowOnNonZeroExitCodeThrowOnNonZeroExitCodeRemoved Types
PipelineHostBuilder- UsePipeline.CreateBuilder()ModuleBase/ModuleBase<T>- UseModule<T>Migration Path
Quick Migration (Minimal Changes)
The
ExecutePipelineAsync()extension still exists:And
ValueOrDefaultprovides backwards-compatible result access:Full Migration
For the cleanest code, adopt the new patterns:
Pipeline.CreateBuilder(args)with direct property accessConfigure()builderIPipelineContexttoIModuleContextGetModule<T>()calls to contextSee the Migration Guide for detailed examples.
Upgrade Steps
dotnet add package ModularPipelines --version 3.0.0Getting Help
migrationlabelWhat's Changed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.